/**
 * Created by Administrator on 2018/3/18 0018.
 */

import React from 'react';
import {
    Route,
    Switch,
} from 'react-router-dom'

import OrderDetail from './detail';
import OrderList from './list';







class Order extends React.Component{
    constructor(props){
        super();
    }
    render(){
        let match = this.props.match;
        return (
            <Switch>
                <Route exact path={`${match.url}/:id`} component={OrderDetail}/>
                <Route exact path={`${match.url}`} component={OrderList}/>
            </Switch>
            )
    }
}
export default Order;
